<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="(v, i) in bannerInfo" :key="i">
      <img class="images" v-lazy="v" alt="" />
    </van-swipe-item>
  </van-swipe>
</template>

<script setup>
import { ref } from "vue";
const bannerInfo = ref(["/img/1.jpeg", "/img/2.jpeg", "/img/3.jpeg"]);
</script>

<style scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
.images {
  width: 100%;
  height: 100%;
}
</style>
